package yawning.mew.bear;

import yawning.mew.sim.SimulationEvent;

public class OoCEvent extends SimulationEvent {
	BearThreatSimulator mState;

	OoCEvent(BearThreatSimulator state) {
		super(state.mSimEngine);
		mState = state;
	}

	public void run() {
		if (mState.mSimEngine.getRandom().nextBoolean(mState.mModel.pOoCProc)) {
			mNrOoCProcs++;

			if (mState.mIsLogging) mState.mLog.log("Omen of Clarity\n");

			schedule(mState.mModel.oocBuffDuration);
		}
	}

	int mNrOoCProcs = 0;
	long mOoCRageReturn = 0;
}